package com.easyJava.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class JsonUtils {
    public static String convert2Json(Object obj){
        if(obj == null) return null;
        return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
    }
}
